import request from '../utils/bsinRequest';

// 添加原子服务
export const AtomicServiceServiceAdd = (paramsOne: any) => {
  return request('/Add', {
    serviceName: 'AtomicServiceService',
    methodName: 'add',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 删除原子服务
export const AtomicServiceServiceDelete = (paramsOne: any) => {
  return request('/Delete', {
    serviceName: 'AtomicServiceService',
    methodName: 'delete',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 修改原子服务
export const AtomicServiceServiceEdit = (paramsOne: any) => {
  return request('/Edit', {
    serviceName: 'AtomicServiceService',
    methodName: 'edit',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 原子服务列表
export const AtomicServiceServiceList = (paramsOne: any, paramsTwo: any) => {
  return request('/list', {
    serviceName: 'AtomicServiceService',
    methodName: 'getListByPage',
    bizParams: {
      ...paramsOne,
    },
    pagination: {
      ...paramsTwo,
    },
  });
};

// 查看原子服务
export const AtomicServiceServiceView = (paramsOne: any) => {
  return request('/View', {
    serviceName: 'AtomicServiceService',
    methodName: 'getAtomicServiceById',
    bizParams: {
      ...paramsOne,
    },
  });
};
